package Api.LoginAndRegist;


import com.cuit.user.User;
import com.cuit.user.Vo.Register;
import com.cuit.user.request.LoginUserRequest;
import common.result.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


import java.util.List;

@Api(tags = "登录注册")
public interface LoginAndRegist {
    @ApiOperation("查找全部用户")
    List<User> findAll();

    @ApiOperation("用户登录")
    ResponseResult login(LoginUserRequest loginUserRequest);

    @ApiOperation("用户注册")
    ResponseResult register(Register register);
}
